projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0042f9b
)
Set ID on css node right away
author
Matthias Clasen
<mclasen@redhat.com>
Tue, 29 Dec 2015 04:15:53 +0000
(23:15 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Tue, 29 Dec 2015 04:18:06 +0000
(23:18 -0500)
Previously, the ID was only set on the CSS node as a side-effect
of calling gtk_widget_get_style_context. This was showing up
in CSS style tests as nodes lacking their IDs.
gtk/gtkwidget.c
patch
|
blob
|
history
diff --git
a/gtk/gtkwidget.c
b/gtk/gtkwidget.c
index ee11c3f130f2a97c6a1f31c7c56107c243624e7f..70e6dedfa828c2a99f21e2559968bcc6835aed61 100644
(file)
--- a/
gtk/gtkwidget.c
+++ b/
gtk/gtkwidget.c
@@
-8822,6
+8822,8
@@
gtk_widget_set_name (GtkWidget *widget,
if (priv->context)
gtk_style_context_set_id (priv->context, priv->name);
+ gtk_css_node_set_id (priv->cssnode, priv->name);
+
g_object_notify_by_pspec (G_OBJECT (widget), widget_props[PROP_NAME]);
}